<?php



namespace App\Services\Company\Models;


use App\Services\Business\Models\Expiredables;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class   CompanyRole extends Model
{
    use HasFactory;


    protected $table = 'company_roles';

    protected $fillable = [
        'title','description'
    ];


    public function privileges()
    {

        return $this->hasMany(CompanyPrivilege::class, 'role_id');
    }

    public function expireds()
    {
        return $this->morphMany(Expiredables::class, 'expiredables');
    }





}
